import { reactive ,isReactive} from "vue";
import { category } from "@/apis/home";
export default function categoryHook() {
    let categoryList: any = reactive({
        list: []
    });
    const getRategory = async () => {
        const { status, data } = await category();
        if (status) {
            categoryList.list = data;
        }
    };
    return { getRategory, categoryList };
}
